package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
* <p>
    * 学科表

    * </p>
*
* @author itheima
* @since 2021-03-28
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("t_course")
    public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 题库id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String icon;

    private String createDate;

            /**
            * 是否显示
            0 显示
            1 不显示
            */
    private Integer isShow;

    private Integer userId;

            /**
            * 排序编号
            */
    private Integer orderNo;
    private String  remark;
    /**
     * 看看这道题该用户有没有做的状态
     */
    @TableField(exist = false)
    private boolean status;
}
